<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
<div id="app">
    <h2>{{url}}</h2>

    <!-- 若data数据里面本就是html语言，使用v-html可以让界面将data里面的值识别为html语言并渲染 -->
    <h2 v-html = "url"></h2>
</div>

<script src="../js/vue.js"></script>
<script>
    const app = new Vue({
        el: '#app',
        data: {
            massage: '你好',
            url: '<a href="https://www.baidu.com">百度一下</a>'
        }
    })
</script>
</body>
</html>